﻿
<!--********************* Part1:Jsp Head *********************-->

<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ include file="/framework/head.jsp"%>

<!--********************* Part2:Java Code *********************-->
<%
	ProductCategoryPageData obj = (ProductCategoryPageData)context.getValue("ProductCategoryPageData");
%>

<!--********************* Part3:JavaScript Code ***************-->
<script language="javascript">

var g_check_items = new Array();
var g_i = 0 ;

g_check_items[g_i++] = new CheckItem("编码","Code",true,true,20,false,0);

g_check_items[g_i++] = new CheckItem("名称","Name",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("描述","Remark",false,true,200,false,0);

g_check_items[g_i++] = new CheckItem("分类级别","CategoryLevel",true,true,1,false,0);

g_check_items[g_i++] = new CheckItem("父类编码","UpperCategory",false,true,20,false,0);

g_check_items[g_i++] = new CheckItem("是否交易平台的产品分类","IsTradeflatCategory",true,true,1,false,0);

g_check_items[g_i++] = new CheckItem("分类一级编码","CategoryId1",false,true,20,false,0);

g_check_items[g_i++] = new CheckItem("分类二级编码","CategoryId2",false,true,20,false,0);

g_check_items[g_i++] = new CheckItem("是否有效","Status",true,true,1,false,0);

g_check_items[g_i++] = new CheckItem("创建人序号","CreateUserId",true,true,32,false,0);

g_check_items[g_i++] = new CheckItem("创建人","CreateUser",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("创建时间","CreateTime",true,true,20,false,0);

g_check_items[g_i++] = new CheckItem("最后修改人序号","LastUpdateUserId",true,true,32,false,0);

g_check_items[g_i++] = new CheckItem("最后修改人","LastUpdateUser",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("最后修改时间","LastUpdateTime",true,true,20,false,0);


function doSaveAndNew()
{
	if(!CheckInput(g_check_items)) return false;
	SetAction("saveAndNewProductCategory");
	frm.submit();
}
function doSave()
{
	if(!CheckInput(g_check_items)) return false;
	SetAction("saveProductCategory");
	frm.submit();
}
function doCancel()
{
	SetAction("backListProductCategory");
	frm.submit();
}

key_InitDefault();
key_RegSubmitHandler(doSaveAndNew);
</script>

<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->

<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code">

<input type=hidden name="Id" value="<%=obj.getId()%>">


<br>

<%=UIManager.addEditHeadTitle("产品分类维护")%>


<!--********************* Part5:Edit Area  ***************-->
<%=uiEditStart%>>
<%
	int key_tab = 1 ;
%>


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>编码：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Code" size=20  value="<%=obj.viewCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>名称：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Name" size=20  value="<%=obj.viewName(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>描述：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Remark" size=20  value="<%=obj.viewRemark(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>分类级别：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CategoryLevel" size=20  value="<%=obj.viewCategoryLevel(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>父类编码：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="UpperCategory" size=20  value="<%=obj.viewUpperCategory(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>是否交易平台的产品分类：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="IsTradeflatCategory" size=20  value="<%=obj.viewIsTradeflatCategory(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>分类一级编码：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CategoryId1" size=20  value="<%=obj.viewCategoryId1(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>分类二级编码：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CategoryId2" size=20  value="<%=obj.viewCategoryId2(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>是否有效：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Status" size=20  value="<%=obj.viewStatus(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建人序号：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateUserId" size=20  value="<%=obj.viewCreateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	

	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建人：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateUser" size=20  value="<%=obj.viewCreateUser(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	
	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建时间：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateTime" size=20  value="<%=obj.viewCreateTime(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改人序号：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateUserId" size=20  value="<%=obj.viewLastUpdateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改人：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateUser" size=20  value="<%=obj.viewLastUpdateUser(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改时间：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateTime" size=20  value="<%=obj.viewLastUpdateTime(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	

<%=uiEditEnd%>

<!--********************* Part6:Action Area  ***************-->
<%=uiCommandStart%>>
	<%=uiCommandTR%>>
   		<%=uiCommandTD%>>                     
			<input type=button class="buttons" value=" 保存&添加 " onclick="doSaveAndNew();return false;">
			<input type=button class="buttons" value="    保存   " onclick="doSave();return false;">
			<input type=button class="buttons" value="    返回   " onclick="doCancel();return false;">
		</td>
	</tr>
<%=uiCommandEnd%>
</form>

<%@ include file="/framework/foot.jsp"%>

<!--
	Author    :Sindy
	FileName  :/system/base/ProductCategoryEdit.jsp
-->
